#include<stdio.h>
#include<windows.h>

int factorial(int n)
{
	int s,i;
	s=1;
	for (i=1;i<=n;i++)
		s*=i;
	return s;
}

int main()
{
	int x;
	x=factorial(10);
	printf("%d\n",x);
	system("pause");
	return 0;
} 
